package com.song.rbac.common;

/**
 * @author TonySong
 * @date 2025/7/31 0031
 * @time 11:30
 */
public enum CodeStatus {
   SUCCESS(200,"成功"),
    ERROR(500,"error"),
    PARAMETER_ERROR(400,"没有资源"),
    UNAUTHORIZED(401,"未登录");
    private Integer code;
    private String msg;

    CodeStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
